Side-channel exploit detection

ABSTRACT

The present disclosure is directed to systems and methods for detecting side-channel exploit attacks such as Spectre and Meltdown. Performance monitoring circuitry includes first counter circuitry to monitor CPU cache misses and second counter circuitry to monitor DTLB load misses. Upon detecting an excessive number of cache misses and/or load misses, the performance monitoring circuitry transfers the first and second counter circuitry data to control circuitry. The control circuitry determines a CPU cache miss to DTLB load miss ratio for each of a plurality of temporal intervals. The control circuitry the identifies, determines, and/or detects a pattern or trend in the CPU cache miss to DTLB load miss ratio. Upon detecting a deviation from the identified CPU cache miss to DTLB load miss ratio pattern or trend indicative of a potential side-channel exploit attack, the control circuitry generates an output to alert a system user or system administrator.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation (and claims the benefit of priorityunder 35 U.S.C. § 120) of U.S. application Ser. No. 16/233,810, filedDec. 27, 2018, and entitled “SIDE-CHANNEL EXPLOIT DETECTION,” whichapplication claims the benefit of U.S. Provisional Patent ApplicationSer. No. 62/645,097, filed Mar. 19, 2018, and entitled “Side-ChannelExploit Detection,” the entire disclosure of which applications areincorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to computing system security, inparticular relates to detection of side-channel exploits.

BACKGROUND

Side-channel attacks may induce a system to speculatively performoperations that would not occur during correct program execution andwhich leak private, confidential, and/or secret information. Otherside-channel attacks break all of the assumptions inherent in addressspace isolation and exploits out-of-order execution to read arbitrarykernel memory locations that may include private, confidential, and/orsecret information. Side Channel attacks communicate the illicitlyobtained private, confidential, and/or secret information to anadversary via a side-channel. Operating system (OS) and centralprocessing unit (CPU) microcode patch-based mitigations for CPUspeculative execution based vulnerabilities have either been difficultto roll out in scale, require application recompilation, and/orintroduce significant performance penalties, particularly for serverworkloads. All current solutions present difficulties in reliabledeployment at scale and may have significant adverse impact on systemperformance in some applications. Thus, a reliable detection solutionwith a low false positive rate and presenting low performance overheadto the system would provide a viable solution for system administrators.

BRIEF DESCRIPTION OF THE DRAWINGS

Features and advantages of various embodiments of the claimed subjectmatter will become apparent as the following Detailed Descriptionproceeds, and upon reference to the Drawings, wherein like numeralsdesignate like parts, and in which:

FIG. 1 is a block diagram of a system that includes illustrative centralprocessing unit (CPU) that includes performance monitoring circuitry,control circuitry, and machine learning circuitry, in accordance with atleast one embodiment described herein;

FIG. 2A is a graphical representation of a normalized CPU cache miss toDTLB load miss ratio as a function of time as a system in an idle stateundergoes a side-channel exploit attack (Spectre), in accordance with atleast one embodiment described herein;

FIG. 2B is a graphical representation of a normalized CPU cache miss toDTLB load miss ratio as a function of time as a system executing a videostream undergoes a side-channel exploit attack (Spectre), in accordancewith at least one embodiment described herein;

FIG. 2C is a graphical representation of a normalized CPU cache miss toDTLB load miss ratio as a function of time as a system undergoes aside-channel exploit attack (Spectre), in accordance with at least oneembodiment described herein;

FIG. 3 is a schematic diagram of an illustrative electronic,processor-based, device that includes processor circuitry that includesperformance monitoring circuitry, control circuitry and machine learningcircuitry, in accordance with at least one embodiment described herein;

FIG. 4 is a flow diagram of an illustrative side-channel exploitdetection method, in accordance with at least one embodiment describedherein; and

FIG. 5 is a flow diagram of an illustrative side-channel exploitdetection method, in accordance with at least one embodiment describedherein.

Although the following Detailed Description will proceed with referencebeing made to illustrative embodiments, many alternatives, modificationsand variations thereof will be apparent to those skilled in the art.

DETAILED DESCRIPTION

The systems and methods described herein beneficially and advantageouslydetect side-channel attacks such as Spectre and Meltdown by detectingchanges in the ratio of a CPU cache miss counter to the dual or datatranslation lookaside buffer (DTLB) load miss counter. Control circuitrywithin a system CPU receives data representative of the CPU cache misscount and the DTLB load miss count. The control circuitry determines avalue representative of a ratio of the CPU cache miss counter to thedata translation lookaside buffer (DTLB) load miss counter for each of aplurality of time intervals. The control circuitry detects a pattern ordetermines a trend in the CPU cache miss to DTLB load miss ratio.Deviations from the detected pattern or determined trend cause thecontrol circuitry to generate output indicative of a potentialside-channel exploit attack, such as Spectre or Meltdown. The systemsand methods described herein advantageously reduce the false positiverate of systems and methods that track only the CPU cache miss rate orcount.

Even more beneficially, the CPU cache miss counter circuitry and theDTLB load miss counter circuitry used by the systems and methodsdescribed herein are often available as CPU performance monitoringcircuitry and thus, require minimal additional processor software,firmware, and/or overhead. For example, Intel® CPUs typically include aPerformance Monitoring Unit (PMU) that includes both CPU cache misscounter circuitry and DTLB load miss counter circuitry. Specifically,the PMU found in Intel® CPUs include both aCYCLE_ACTIVITY.STALLS_L3_MISS counter that provides the CPU cache misscounter circuitry and a DTLB_LOAD_MISSES.WALK_PENDING counter thatprovides the DTLB load miss counter circuitry. Upon detecting an eventsuch as a counter overflow by either or both CPU cache miss counterand/or the DTLB load miss counter, the PMU generates an interrupt thatcauses the transfer of CPU cache miss counter data and DTLB load misscounter data to the control circuitry.

Upon receipt of the CPU cache miss counter data and the DTLB load misscounter data from the performance management circuitry, the controlcircuitry determines a counter correlation ratio using the two valuesaccording to the following expression:

Counter Correlation Ratio=CPU Cache Miss Count/(CPU Cache MissCount+DTLB Load Miss Count)  (1)

The control circuitry determines the ratio for each of a plurality oftime intervals and detects the pattern or determines the trend in theratio data. Pattern deviations and/or statistically significant trenddeviations provide an indication of a potential side-channel exploitattack.

The systems and methods described herein beneficially and advantageouslyhave demonstrated a high efficiency in reliably detecting side-channelexploit attacks, such as Spectre and Meltdown, including the more recentprime+probe variants. Further, the systems and methods described hereinprovide false positive resiliency to various and typical stressworkloads, on both the client and server sides. The systems and methodsdescribed herein do not require operating system updates, CPU codeupdates and application recompilation with new toolchains. Thus, thesystems and methods described herein are more readily and effectivelydeployed at scale and provide minimal impact on system and/or processorperformance. The systems and methods described herein further haveimproved reliability and reduced false positive rates than operatingsystem and/or application-based software solutions. Thus, the systemsand methods described herein beneficially improve the speed andreliability of the host system while solving the technical problem ofdetecting side-channel exploit attacks in a manner that minimallycompromises system performance.

The systems and methods described herein take advantage of thesignificantly higher ratio of CPU cache misses to DTLB load misses thatindicate a potential side-channel exploit attack. Thus, the systems andmethods described herein significantly differ from solutions that dependon detecting a surge in CPU cache misses to successful CPU cache loads.Systems using a ratio of CPU cache misses to successful CPU cache loadsare prone to false positives, particularly in input/output andjust-in-time compilation intensive applications. The systems and methodsdescribed herein detect a surge in the CPU cache misses to DTLB loadmisses ratio and is therefore reliably distinguishable to side-channelexploit attacks which exhibit this behavior over the duration of theirexecution. In contrast, legitimate applications are often optimized totypically experience cache misses in correlation to TLB misses, e.g. appstart, data load, keeping the ratio stable over their execution length.The systems and methods described herein thus provide a highly reliabledetection solution for scenarios where mitigation is undesirable due todeployment complexity or performance overhead.

Speculative execution based side-channel exploits utilize cache timingattacks to infer data from victim processes. The exploit will put thecache in a known state and then time data access operations to detect achange in the cache state which leads to a surge in cache misses. Thesystems and methods described herein use the fact that even though theseexploits can manipulate the cache state, such as by flushing the cache,the exploits do not have privileges to manipulate the Data TranslationLookaside Buffer (DTLB) from the user space. Our solution detects thisbehavior by sampling the following PMU counters:

CYCLE_ACTIVITY.STALLS_L3_MISS; and DTLB_LOAD_MISSES.WALK_PENDING at areasonable rate and calculating the ratio of the two according toequation 1 (above). This ratio is tracked over a plurality of temporalintervals (e.g., 50 millisecond intervals) and an unusual surge in theratio may indicate a side-channel exploit attack in progress.Side-channel exploit attack detection may be enhanced by training, viamachine learning, the control circuitry using the ratio data andemploying one or more models to infer exploit execution in real time.

A central processing unit (CPU) is provided. The CPU may include:performance monitoring circuitry that includes: first counter circuitryto provide a first value that corresponds to a number of CPU cachemisses that occur over each of a plurality of time intervals; and secondcounter circuitry to provide a second value that corresponds to a numberof data translation lookaside buffer (DTLB) load misses that occur overeach of the plurality of time intervals. The CPU may further includecontrol circuitry to: receive from the performance monitoring circuitrydata representative of the first value and data representative of thesecond value; calculate a CPU cache miss/DTLB load miss ratio based onthe first value divided by the sum of the first value and the secondvalue; identify a trend based on the CPU cache miss/DTLB load miss ratioover the plurality of time intervals; and generate an output indicativeof a side channel exploit execution responsive to an identification of adeviation in the trend based on the CPU cache miss/DTLB load miss ratio.

A central processing unit (CPU) side-channel exploit detection method isprovided. The method may include: generating, by first countercircuitry, a first value that corresponds to a number of CPU cachemisses that occur over each of a plurality of time intervals;generating, by second counter circuitry, a second value that correspondsto a number of data translation lookaside buffer (DTLB) load misses thatoccur over each of the plurality of time intervals; receiving, bycontrol circuitry, data representative of the first value and datarepresentative of the second value; determining, by the controlcircuitry, a CPU cache miss/DTLB load miss ratio based on the firstvalue divided by the sum of the first value and the second value;identifying, by the control circuitry, a CPU cache miss/DTLB load missratio trend over the plurality of time intervals; detecting, by thecontrol circuitry, a deviation in the CPU cache miss/DTLB load missratio trend; and generating, by the control circuitry, an outputindicative of a potential execution on of a side-channel exploitresponsive to detection of the deviation in the CPU cache miss/DTLB loadmiss ratio trend.

A side-channel exploit detection controller is provided. The controllermay include: control circuitry; and a storage device coupled to thecontrol circuitry, the storage device including machine-readableinstructions that when executed by the control circuitry, cause thecontrol circuitry to: receive, from first counter circuitry, datarepresentative of a first value that corresponds to a number of CPUcache misses that occur over each of a plurality of time intervals;receive, from second counter circuitry, data representative of a secondvalue that corresponds to a number of data translation lookaside buffer(DTLB) load misses that occur over each of the plurality of timeintervals; determine a CPU cache miss/DTLB load miss ratio based on thefirst value divided by the sum of the first value and the second value;identify a CPU cache miss/DTLB load miss ratio trend over the pluralityof time intervals; detect a deviation in the CPU cache miss/DTLB loadmiss ratio trend; and generate an output indicative of a potentialexecution on of a side-channel exploit responsive to detection of thedeviation in the CPU cache miss/DTLB load miss ratio trend.

A non-transitory machine-readable storage device is provided. Thenon-transitory machine-readable storage device may include instructionsthat, when executed by the control circuitry, cause the controlcircuitry to: receive, from first counter circuitry, data representativeof a first value that corresponds to a number of CPU cache misses thatoccur over each of a plurality of time intervals; receive, from secondcounter circuitry, data representative of a second value thatcorresponds to a number of data translation lookaside buffer (DTLB) loadmisses that occur over each of the plurality of time intervals;determine a CPU cache miss/DTLB load miss ratio based on the first valuedivided by the sum of the first value and the second value; identify aCPU cache miss/DTLB load miss ratio trend over the plurality of timeintervals; detect a deviation in the CPU cache miss/DTLB load miss ratiotrend; and generate an output indicative of a potential execution on ofa side-channel exploit responsive to detection of the deviation in theCPU cache miss/DTLB load miss ratio trend.

A central processing unit (CPU) side-channel exploit detection system isprovided. The system may include: means for generating a first valuethat corresponds to a number of CPU cache misses that occur over each ofa plurality of time intervals; means for generating a second value thatcorresponds to a number of data translation lookaside buffer (DTLB) loadmisses that occur over each of the plurality of time intervals; meansfor determining a CPU cache miss/DTLB load miss ratio based on the firstvalue divided by the sum of the first value and the second value; meansfor identifying a CPU cache miss/DTLB load miss ratio trend over theplurality of time intervals; means for detecting a deviation in the CPUcache miss/DTLB load miss ratio trend; and means for generating anoutput indicative of a potential execution on of a side-channel exploitresponsive to detection of the deviation in the CPU cache miss/DTLB loadmiss ratio trend.

An electronic device is provided. The electronic device may include: aprinted circuit board; and a central processing unit (CPU) coupled tothe printed circuit board, the CPU may include: performance monitoringcircuitry that includes: first counter circuitry to provide a firstvalue that corresponds to a number of CPU cache misses that occur overeach of a plurality of time intervals; and second counter circuitry toprovide a second value that corresponds to a number of data translationlookaside buffer (DTLB) load misses that occur over each of theplurality of time intervals. The CPU may further include: controlcircuitry to: receive from the performance monitoring circuitry datarepresentative of the first value and data representative of the secondvalue; calculate a CPU cache miss/DTLB load miss ratio based on thefirst value divided by the sum of the first value and the second value;identify a trend based on the CPU cache miss/DTLB load miss ratio overthe plurality of time intervals; and generate an output indicative of aside channel exploit execution responsive to an identification of adeviation in the trend based on the CPU cache miss/DTLB load miss ratio.

FIG. 1 is a block diagram of a system 100 that includes illustrativecentral processing unit (CPU) 110 that includes performance monitoringcircuitry 120, control circuitry 130, and machine learning circuitry140, in accordance with at least one embodiment described herein. Asdepicted in FIG. 1, the performance monitoring circuitry 120 includesfirst counter circuitry 122 used to provide the CPU cache miss counterand second counter circuitry 124 used to provide the data translationlookaside buffer (DTLB) load miss counter. In embodiments, the firstcounter circuitry 122 monitors, tracks, and/or counts the number of CPUcache misses. In embodiments, the second counter circuitry 124 monitors,tracks, and/or counts the number of DTLB load misses. Upon detecting anoverflow of either (or both) the CPU cache miss counter and/or the DTLBload miss counter, the performance monitoring circuitry 120 may generatean interrupt that causes the transfer of first count data from the firstcounter circuitry 122 and second count data from the second countercircuitry 124 to the control circuitry 130.

The control circuitry 130 receives the first count data (i.e., the CPUcache miss count 132) from the first counter circuitry 122 and thesecond count data (i.e., the DTLB load miss count 134) from the secondcounter circuitry 124. In embodiments, the control circuitry 130 maystore all or a portion of the received CPU cache miss count 132 and/orthe DTLB load miss count 134 in a memory location and/or storage device.In embodiments, the control circuitry 130 may organize the receivedfirst count data and the second count data into a plurality of temporalintervals 138 ₁-138 _(n) (collectively, “temporal intervals 138”). Foreach of at least some of the temporal intervals 138 ₁-138 _(n), thecontrol circuitry 130 may determine a respective CPU cache miss count toDTLB load miss count ratio 136 ₁-136 _(n). In embodiments, the controlcircuitry 130 may detect a trend or pattern in the CPU cache miss countto DTLB load miss count ratios 136 ₁-136 _(n). The control circuitry 130may detect pattern deviations and/or statistically significant trenddeviations in the CPU cache miss count to DTLB load miss count ratios136 ₁-136 _(n) and may generate one or more output signals that includeinformation indicative of a potential side-channel exploit attack basedon the detected pattern or trend deviation in the CPU cache miss countto DTLB load miss count ratio 136 occurring in at least some of the oneor more temporal intervals 138.

In embodiments, each of the plurality of temporal intervals 138 may besequentially or serially arranged (i.e., without intervening temporalspaces). In other embodiments, each of the plurality of temporalintervals 138 may be spaced apart, with fixed or variable interveningtemporal spaces. Each of the plurality of temporal intervals 138 mayhave the same or a different duration. For example, each of the temporalintervals included in the plurality of temporal intervals may have aduration of: about 10 milliseconds (ms) or less; about 25 ms or less;about 50 ms or less; about 100 ms or less; about 250 ms or less; orabout 500 ms or less.

The CPU 110 may include any number and/or combination of currentlyavailable and/or future developed single- or multi-core centralprocessing units. In embodiments, the CPU 110 may include ageneral-purpose processor, such as a Core® i3, i5, i7, 2 Duo and Quad,Xeon®, Itanium®, Atom®, or Quark® microprocessor, available from Intel®(Intel Corporation, SANTA CLARA, Calif.), Alternatively, the CPU 110 mayinclude one or more processors from another manufacturer or supplier,such as Advanced Micro Devices (AMD®, Inc.), ARM Holdings® Ltd, MIPS®,etc. The CPU 110 may include a special-purpose processor, such as, forexample, a network or communication processor, compression engine,graphics processor, co-processor, embedded processor, or the like. TheCPU 110 may be implemented as a single semiconductor package or as acombination of stacked or otherwise interconnected semiconductorpackages and/or dies. The CPU 110 may be a part of and/or may beimplemented on one or more substrates using any of a number of processtechnologies, such as, for example, BiCMOS, CMOS, or NMOS.

The performance monitoring circuitry 120 may include any number and/orcombination of any currently available or future developed electronicdevices and/or semiconductor components capable of monitoring one ormore performance aspects and/or parameters of the CPU 110. Theperformance monitoring circuitry 120 may have any number and/orcombination of event counters. In embodiments, the performancemonitoring circuitry 120 may include first counter circuitry 122 tomonitor, track, and/or count CPU cache misses and second countercircuitry 124 to monitor, track, and/or count DTLB load misses. Forexample, in an Intel® CPU the performance monitoring circuitry 120 maybe at least partially included or otherwise embodied in a PerformanceMonitoring Unit (PMU). Within the PMU, the CYCLE_ACTIVITY.STALLS_L3_MISScounter may provide some or all of the first counter circuitry 122 thatprovides the data representative of the CPU cache miss count 132 ₁-132_(n) to the control circuitry 130. Also within the PMU, theDTLB_LOAD_MISSES.WALK_PENDING counter may provide some or all of thesecond counter circuitry 124 that provides the data representative ofthe DTLB load miss count 134 ₁-134 _(n) to the control circuitry 130.

In some implementations, the performance monitoring circuitry 120 mayinclude one or more configurable or programmable elements, such as oneor more configurable integrated circuits, capable of executingmachine-readable instruction sets that cause the configurable orprogrammable elements to combine in a particular manner to create theperformance monitoring circuitry 120. In some implementations, theperformance monitoring circuitry 120 may include one or more stand-alonedevices or systems, for example, the performance monitoring circuitry120 may be embodied in a single surface- or socket-mount integratedcircuit. In other implementations, the performance monitoring circuitry120 may be provided in whole or in part via one or more processors,controllers, digital signal processors (DSPs), reduced instruction setcomputers (RISCs), systems-on-a-chip (SOCs), application specificintegrated circuits (ASICs) capable of providing all or a portion of thehost CPU 110.

The first counter circuitry 122 may include any number and/orcombination of currently available and/or future developed electricalcomponents, semiconductor devices, and/or logic elements capable ofmonitoring, tracking, and/or counting CPU cache misses. In at least someembodiments, the first counter circuitry 122 may include circuitrycapable of monitoring, tracking, and/or counting CPU level 3 (L3) cachemisses. In embodiments, the first counter circuitry 122 may communicateinformation and/or data indicative of the CPU cache miss count 132either directly to the control circuitry 130 or indirectly to thecontrol circuitry 130 via the performance monitoring circuitry 120. Inat least some embodiments, upon occurrence of an overflow condition, thefirst counter circuitry 122 may provide one or more signals indicativeof the overflow condition to the performance monitoring circuitry 120.

The second counter circuitry 124 may include any number and/orcombination of currently available and/or future developed electricalcomponents, semiconductor devices, and/or logic elements capable ofmonitoring, tracking, and/or counting Data Translation Lookaside Buffer(DTLB) load misses. In embodiments, the second counter circuitry 124 maycommunicate information and/or data indicative of the DTLB load misscount 134 either directly to the control circuitry 130 or indirectly tothe control circuitry 130 via the performance monitoring circuitry 120.In at least some embodiments, upon occurrence of an overflow condition,the second counter circuitry 122 may provide one or more signalsindicative of the overflow condition to the performance monitoringcircuitry 120.

The control circuitry 130 may include any number and/or combination ofcurrently available and/or future developed electrical components,semiconductor devices, and/or logic elements capable of receiving datarepresentative of a count of CPU cache misses and data representative ofa count of DTLB load misses from the performance monitoring circuitry120, calculating one or more CPU cache miss to DTLB load miss ratios 136₁-136 _(n) for each respective one of at least some of a plurality oftemporal intervals 138 ₁-138 _(n), detecting deviations or abnormalitiesin the pattern or trend of DTLB load miss ratios 136, and generating oneor more signals indicative of a potential side-channel exploit attackresponsive to detecting a deviation and/or abnormality in the pattern ortrend of CPU cache miss to DTLB load miss ratios 136. In embodiments,the control circuitry 130 may be formed by the execution ofmachine-readable instruction sets associated with an application and/orservice executed in ring 3 user space. In embodiments, the performancemonitoring circuitry 120 may provide some or all of the controlcircuitry 130. In other embodiments, the CPU 110 may provide some or allof the control circuitry 130 upon executing one or more machine readableinstruction sets.

Although not depicted in FIG. 1, in embodiments, a memory or similarstorage device may be coupled to the control circuitry 130. The controlcircuitry 130 may cause the storage of some or all of the received datarepresentative of: the CPU cache miss counts 132 ₁-132 _(n); the DTLBload miss count 134 ₁-134 _(n); and/or the CPU cache miss to DTLB loadmiss ratios 136 ₁-136 _(n) in the memory or storage device. In at leastsome embodiments, some or all of the data stored in the memory orstorage device may be accessible to a system user.

In at least some embodiments, the CPU 110 may additionally includemachine learning circuitry 140. The machine learning circuitry 140 maybe directly or indirectly coupled to the control circuitry 130. Inembodiments, the machine learning circuitry 140 may train the controlcircuitry 130 to identify patterns (e.g., perform pattern recognition)and/or determine trends using at least some of the CPU cache miss toDTLB load miss ratios 136 ₁-136 _(n). In embodiments, one or moretraining data sets may be used by the machine learning circuitry 140 togenerate a model representative of a pattern or trend in the CPU cachemiss to DTLB load miss ratios 136 ₁-136 _(n). In such embodiments, thecontrol circuitry 130 may use at least some of the model representativeof a pattern or trend in the CPU cache miss to DTLB load miss ratio toidentify, in real-time or near real-time, deviations in the pattern ortrend formed by the CPU cache miss to DTLB load miss ratio 136.

FIG. 2A is a graphical representation 200A of a normalized CPU cachemiss to DTLB load miss ratio 210 as a function of time 220 as a systemundergoes a side-channel exploit attack (Spectre), in accordance with atleast one embodiment described herein. In the embodiment depicted inFIG. 2A, four distinct time intervals 240A, 240B, 240C, and 240D existwhen the side-channel exploit attack causes the normalized CPU cachemiss to DTLB load miss ratio 210 to separate from the normalized CPUcache miss to DTLB load miss ratio 230 that occurs as the CPU idles.

In such an embodiment, upon detecting the increase in the CPU cache missto DTLB load miss ratio, the performance monitoring circuitry 120generates an interrupt that causes the communication of informationrepresentative of the CPU cache miss count 122 and the DTLB load misscount 124 to the control circuitry 130. The control circuitry 130determines the CPU cache miss to DTLB load miss ratio 136 ₁-136 _(n) foreach of a plurality of time intervals 138 ₁-138 _(n). The controlcircuitry 130, upon detecting the elevated CPU cache miss to DTLB loadmiss ratio, the control circuitry 130 may generate an alert indicativeof a potential side-channel exploit attack.

FIG. 2B is a graphical representation 200B of a normalized CPU cachemiss to DTLB load miss ratio 210 as a function of time 220 as a systemundergoes a side-channel exploit attack (Spectre), in accordance with atleast one embodiment described herein. In the embodiment depicted inFIG. 2B, four distinct time intervals 240A, 240B, 240C, and 240D existwhen the side-channel exploit attack causes the normalized CPU cachemiss to DTLB load miss ratio 210 to separate from the normalized CPUcache miss to DTLB load miss ratio 230 that occurs as the CPU executesinstructions associated with provision of a video presentation (e.g., aYoutube® video).

As before, upon detecting the increase in the CPU cache miss countand/or the DTLB load miss count, the performance monitoring circuitry120 generates an interrupt that causes the communication of informationrepresentative of the CPU cache miss count 122 and the DTLB load misscount 124 to the control circuitry 130. In embodiments, the performancemonitoring circuitry 120 may generate the interrupt when either or boththe CPU cache miss count and/or the DTLB load miss count exceeds one ormore user or system configurable count thresholds. The control circuitry130 determines the CPU cache miss to DTLB load miss ratio 136 ₁-136 _(n)for each of a plurality of time intervals 138 ₁-138 _(n). The controlcircuitry 130, upon detecting the elevated CPU cache miss to DTLB loadmiss ratio, the control circuitry 130 may generate an alert indicativeof a potential side-channel exploit attack.

FIG. 2C is a graphical representation 200C of a normalized CPU cachemiss to DTLB load miss ratio 210 as a function of time 220 as a systemundergoes a side-channel exploit attack (Spectre), in accordance with atleast one embodiment described herein. In the embodiment depicted inFIG. 2C, four distinct time intervals 240A, 240B, 240C, and 240D existwhen the side-channel exploit attack causes the normalized CPU cachemiss to DTLB load miss ratio 210 to separate from the normalized CPUcache miss to DTLB load miss ratio 230 that occurs as the CPU executesinstructions associated with a graphics intensive application (e.g., aMinecraft® game).

As before, upon detecting the increase in the CPU cache miss countand/or the DTLB load miss count, the performance monitoring circuitry120 generates an interrupt that causes the communication of informationrepresentative of the CPU cache miss count 122 and the DTLB load misscount 124 to the control circuitry 130. In embodiments, the performancemonitoring circuitry 120 may generate the interrupt when either or boththe CPU cache miss count and/or the DTLB load miss count exceeds one ormore user or system configurable count thresholds. The control circuitry130 determines the CPU cache miss to DTLB load miss ratio 136 ₁-136 _(n)for each of a plurality of time intervals 138 ₁-138 _(n). The controlcircuitry 130, upon detecting the elevated CPU cache miss to DTLB loadmiss ratio, the control circuitry 130 may generate an alert indicativeof a potential side-channel exploit attack.

FIG. 3 is a schematic diagram of an illustrative electronic,processor-based, device 300 that includes processor circuitry 110 thatincludes performance monitoring circuitry 120, control circuitry 130 andmachine learning circuitry 140, in accordance with at least oneembodiment described herein. The processor-based device 300 mayadditionally include one or more of the following: a graphicalprocessing unit 312, a wireless input/output (I/O) interface 320, awired I/O interface 330, memory circuitry 340, power managementcircuitry 350, non-transitory storage device 360, and a networkinterface 370. The following discussion provides a brief, generaldescription of the components forming the illustrative processor-baseddevice 300. Example, non-limiting processor-based devices 300 mayinclude: smartphones, wearable computers, portable computing devices,handheld computing devices, desktop computing devices, blade serverdevices, workstations, and similar.

The processor-based device 300 includes processor circuitry 110 thatincludes performance monitoring circuitry 120, control circuitry 130,and machine learning circuitry 140. In embodiments, the processor-baseddevice 300 may additionally include graphics processor circuitry 312. Inembodiments, the processor-based device 300 includes processor circuitry110 capable of executing machine-readable instruction sets 314, readingdata and/or instruction sets 314 from one or more storage devices 360and writing data to the one or more storage devices 360. In someembodiments, the processor-based device 300 includes graphics processorcircuitry 312 capable of executing machine-readable instruction sets 314and generating an output signal capable of providing a display output toa system user. Those skilled in the relevant art will appreciate thatthe illustrated embodiments as well as other embodiments may bepracticed with other processor-based device configurations, includingportable electronic or handheld electronic devices, for instancesmartphones, portable computers, wearable computers, consumerelectronics, personal computers (“PCs”), network PCs, minicomputers,server blades, mainframe computers, and the like.

The processor circuitry 110 may include any number of hardwired orconfigurable circuits, some or all of which may include programmableand/or configurable combinations of electronic components, semiconductordevices, and/or logic elements that are disposed partially or wholly ina PC, server, or other computing system capable of executingprocessor-readable instructions.

The processor-based device 300 includes a bus or similar communicationslink 316 that communicably couples and facilitates the exchange ofinformation and/or data between various system components including theprocessor circuitry 110, the graphics processor circuitry 312, one ormore wireless I/O interfaces 320, one or more wired I/O interfaces 330,one or more storage devices 360, and/or one or more network interfaces370. The processor-based device 300 may be referred to in the singularherein, but this is not intended to limit the embodiments to a singleprocessor-based device 300, since in certain embodiments, there may bemore than one processor-based device 300 that incorporates, includes, orcontains any number of communicably coupled, collocated, or remotenetworked circuits or devices.

The processor circuitry 110 may include any number, type, or combinationof currently available or future developed devices capable of executingmachine-readable instruction sets. The processor circuitry 110 mayinclude but is not limited to any current or future developed single- ormulti-core processor or microprocessor, such as: on or more systems on achip (SOCs);

central processing units (CPUs); digital signal processors (DSPs);graphics processing units (GPUs); application-specific integratedcircuits (ASICs), programmable logic units, field programmable gatearrays (FPGAs), and the like. Unless described otherwise, theconstruction and operation of the various blocks shown in FIG. 3 are ofconventional design. Consequently, such blocks need not be described infurther detail herein, as they will be understood by those skilled inthe relevant art. The bus 316 that interconnects at least some of thecomponents of the processor-based device 300 may employ any currentlyavailable or future developed serial or parallel bus structures orarchitectures.

The system memory 340 may include read-only memory (“ROM”) 342 andrandom access memory (“RAM”) 346. A portion of the ROM 342 may be usedto store or otherwise retain a basic input/output system (“BIOS”) 344.The BIOS 344 provides basic functionality to the processor-based device300, for example by causing the processor circuitry 110 to load and/orexecute one or more machine-readable instruction sets 314. Inembodiments, at least some of the one or more machine-readableinstruction sets 314 cause at least a portion of the processor circuitry110 to provide, create, produce, transition, and/or function as adedicated, specific, and particular machine, for example a wordprocessing machine, a digital image acquisition machine, a media playingmachine, a gaming system, a communications device, a smartphone, orsimilar.

The processor-based device 300 may include at least one wirelessinput/output (I/O) interface 320. The at least one wireless I/Ointerface 320 may be communicably coupled to one or more physical outputdevices 322 (tactile devices, video displays, audio output devices,hardcopy output devices, etc.). The at least one wireless I/O interface320 may communicably couple to one or more physical input devices 324(pointing devices, touchscreens, keyboards, tactile devices, etc.). Theat least one wireless I/O interface 320 may include any currentlyavailable or future developed wireless I/O interface. Example wirelessI/O interfaces include, but are not limited to: BLUETOOTH®, near fieldcommunication (NFC), and similar.

The processor-based device 300 may include one or more wiredinput/output (I/O) interfaces 330. The at least one wired I/O interface330 may be communicably coupled to one or more physical output devices322 (tactile devices, video displays, audio output devices, hardcopyoutput devices, etc.). The at least one wired I/O interface 330 may becommunicably coupled to one or more physical input devices 324 (pointingdevices, touchscreens, keyboards, tactile devices, etc.). The wired I/Ointerface 330 may include any currently available or future developedI/O interface. Example wired I/O interfaces include, but are not limitedto: universal serial bus (USB), IEEE 1394 (“FireWire”), and similar.

The processor-based device 300 may include one or more communicablycoupled, non-transitory, data storage devices 360. The data storagedevices 360 may include one or more hard disk drives (HDDs) and/or oneor more solid-state storage devices (SSDs). The one or more data storagedevices 360 may include any current or future developed storageappliances, network storage devices, and/or systems. Non-limitingexamples of such data storage devices 360 may include, but are notlimited to, any current or future developed non-transitory storageappliances or devices, such as one or more magnetic storage devices, oneor more optical storage devices, one or more electro-resistive storagedevices, one or more molecular storage devices, one or more quantumstorage devices, or various combinations thereof. In someimplementations, the one or more data storage devices 360 may includeone or more removable storage devices, such as one or more flash drives,flash memories, flash storage units, or similar appliances or devicescapable of communicable coupling to and decoupling from theprocessor-based device 300.

The one or more data storage devices 360 may include interfaces orcontrollers (not shown) communicatively coupling the respective storagedevice or system to the bus 316. The one or more data storage devices360 may store, retain, or otherwise contain machine-readable instructionsets, data structures, program modules, data stores, databases, logicalstructures, and/or other data useful to the processor circuitry 110and/or graphics processor circuitry 312 and/or one or more applicationsexecuted on or by the processor circuitry 110 and/or graphics processorcircuitry 312. In some instances, one or more data storage devices 360may be communicably coupled to the processor circuitry 110, for examplevia the bus 316 or via one or more wired communications interfaces 330(e.g., Universal Serial Bus or USB); one or more wireless communicationsinterfaces 320 (e.g., Bluetooth®, Near Field Communication or NFC);and/or one or more network interfaces 370 (IEEE 802.3 or Ethernet, IEEE802.11, or WiFi®, etc.).

Processor-readable instruction sets 314 and other programs,applications, logic sets, and/or modules may be stored in whole or inpart in the system memory 340. Such instruction sets 314 may betransferred, in whole or in part, from the one or more data storagedevices 360. The instruction sets 314 may be loaded, stored, orotherwise retained in system memory 340, in whole or in part, duringexecution by the processor circuitry 110 and/or graphics processorcircuitry 312. The processor-readable instruction sets 314 may includemachine-readable and/or processor-readable code, instructions, orsimilar logic capable of providing the speech coaching functions andcapabilities described herein.

The processor-based device 300 may include power management circuitry350 that controls one or more operational aspects of the energy storagedevice 352. In embodiments, the energy storage device 352 may includeone or more primary (i.e., non-rechargeable) or secondary (i.e.,rechargeable) batteries or similar energy storage devices. Inembodiments, the energy storage device 352 may include one or moresupercapacitors or ultracapacitors. In embodiments, the power managementcircuitry 350 may alter, adjust, or control the flow of energy from anexternal power source 354 to the energy storage device 352 and/or to theprocessor-based device 300. The power source 354 may include, but is notlimited to, a solar power system, a commercial electric grid, a portablegenerator, an external energy storage device, or any combinationthereof.

For convenience, the processor circuitry 110, the graphics processorcircuitry 312, the wireless I/O interface 320, the wired I/O interface330, the power management circuitry 350, the storage device 360, and thenetwork interface 370 are illustrated as communicatively coupled to eachother via the bus 316, thereby providing connectivity between theabove-described components. In alternative embodiments, theabove-described components may be communicatively coupled in a differentmanner than illustrated in FIG. 3. For example, one or more of theabove-described components may be directly coupled to other components,or may be coupled to each other, via one or more intermediary components(not shown). In another example, one or more of the above-describedcomponents may be integrated into the processor circuitry 110 and/or thegraphics processor circuitry 312. In some embodiments, all or a portionof the bus 316 may be omitted and the components are coupled directly toeach other using suitable wired or wireless connections.

FIG. 4 is a flow diagram of an illustrative side-channel exploitdetection method 400, in accordance with at least one embodimentdescribed herein. The performance monitoring circuitry 120 gathersinformation on one or more system parameters at the kernel (ring 0)level. The performance monitoring circuitry 120 includes a first counterto track CPU cache misses (e.g., the CYCLE_ACTIVITY.STALLS_L3_MISScounter) and a second counter to track DTLB load misses (e.g., theDTLB_LOAD_MISSES.WALK_PENDING counter). Advantageously, the ratio 136 ofthe CPU cache misses to the DTLB load misses provides a readilyaccessible indicator of an occurrence of a side-channel exploit attack,such as Spectre or Meltdown. Control circuitry 130 monitors the CPUcache miss to DTLB load miss ratio 136. Using pattern recognition and/ortrend analysis, at times enhanced by machine learning, the controlcircuitry 130 analyzes the CPU cache miss to DTLB load miss ratio 136,recognizes a sharp increase in the ratio (Ref. FIGS. 2A-2C, discussedabove) indicative of a side-channel exploit attack and generates analert to the system user or administrator. The method commences at 402.

At 404, the performance monitoring circuitry 120 generates informationand/or data representative of a CPU cache miss count. In embodiments,first counter circuitry 122 within the performance monitoring circuitry120 may monitor, track, and/or count the number of CPU cache misses overone or more of a plurality of temporal intervals 138 ₁-138 n. In atleast some embodiments, the performance monitoring circuitry 120 maytrack the CPU cache miss count 132 using theCYCLE_ACTIVITY.STALLS_L3_MISS counter to provide all or a portion of thefirst counter circuitry 122.

At 406, the performance monitoring circuitry 120 generates informationand/or data representative of a DTLB load miss count. In embodiments,second counter circuitry 124 within the performance monitoring circuitry120 may monitor, track, and/or count the number of DTLB load misses overone or more of a plurality of temporal intervals 138 ₁-138 n. In atleast some embodiments, the performance monitoring circuitry 120 maytrack the DTLB load miss count 134 using theDTLB_LOAD_MISSES.WALK_PENDING counter to provide all or a portion of thesecond counter circuitry 124.

At 408, control circuitry 130 receives information indicative of the CPUcache miss count 132 and the DTLB load miss count 134 from theperformance monitoring circuitry 120. In some implementations, thecontrol circuitry 130 may include one or more background applicationsexecuted in the user space of the host system (e.g., at ring 3). Thecontrol circuitry 130 determines the CPU cache miss to DTLB load missratio 136 ₁-136 _(n) for each of a respective plurality of temporalintervals 138 ₁-138 _(n). In embodiments, each of the plurality oftemporal intervals 138 may have the same temporal duration or adifferent duration. In embodiments, each of the plurality of temporalintervals 138 may be sequentially or serially arranged. In embodiments,the control circuitry may determine the CPU cache miss to DTLB load missratio 136 according to the following equation:

Counter Correlation Ratio=CPU Cache Miss Count/(CPU Cache MissCount+DTLB Load Miss Count)  (2)

At 410, the control circuitry 130 monitors the CPU cache miss to DTLBload miss ratio 136 ₁-136 _(n) over a respective plurality of temporalintervals 138 ₁-138 _(n). Using the acquired CPU cache miss to DTLB loadmiss ratio 136 information, the control circuitry 130 identifies one ormore patterns or trends in the CPU cache miss to DTLB load miss ratio136 indicative of “normal” system operation.

In some instances, machine learning circuitry 140 may train the controlcircuitry 130 in pattern recognition and/or trend analysis using anycurrently available machine learning technique applicable to patternrecognition and/or trend analysis. For example, the machine learningcircuitry 140 may train the control circuitry 130 in pattern recognitionmethods using one or more of the following: parametric classificationalgorithms (linear discriminant analysis, quadratic discriminantanalysis, etc.); non-parametric classification algorithms (decisiontrees, naïve Bayes classifier, neural networks, etc.); clusteringalgorithms (hierarchical clustering, K-means clustering, correlationclustering, etc.); ensemble learning algorithms (bootstrap aggregating,ensemble averaging, etc.); general algorithms (Bayesian networks, Markovrandom fields, etc.); or, multilinear subspace learning algorithms(multilinear principle component analysis, etc.).

At 412, the control circuitry 130 detects a deviation in the identifiedpattern or trend in the CPU cache miss to DTLB load miss ratio 136 ₁-136_(n) over or across all or a portion of one or more of the plurality oftemporal intervals 138 ₁-138 _(n). For example, the control circuitry130 may detect a sudden increase or decrease in the CPU cache miss toDTLB load miss ratio 136 over one or more of the plurality of temporalintervals 138 ₁-138 _(n).

At 414, responsive to detecting a deviation in the identified pattern ortrend in the CPU cache miss to DTLB load miss ratio 136 ₁-136 _(n) overor across all or a portion of one or more of the plurality of temporalintervals 138 ₁-138 _(n), the control circuitry 130 generates an alertindicative of a potential side-channel exploit attack. The method 400concludes at 416.

FIG. 5 is a flow diagram of an illustrative side-channel exploitdetection method 500, in accordance with at least one embodimentdescribed herein. The performance monitoring circuitry 120 gathersinformation on one or more system parameters at the kernel (ring 0)level. The performance monitoring circuitry 120 includes a first counterto track CPU cache misses (e.g., the CYCLE_ACTIVITY.STALLS_L3_MISScounter) and a second counter to track DTLB load misses (e.g., theDTLB_LOAD_MISSES.WALK_PENDING counter). Upon detecting a counteroverflow at the kernel level, the performance monitoring circuitry 120generates an interrupt and transfers the CPU cache miss count datagenerated by the first counter circuitry 122 and the DTLB load misscount data generated by the second counter circuitry 124 to controlcircuitry 130 in the user space (i.e., ring 3). The control circuitry130 monitors the CPU cache miss to DTLB load miss ratio 136 ₁-136 _(n)over a plurality of temporal intervals 138 ₁-138 _(n) to detect one ormore patterns or trends. Deviations from in the CPU cache miss to DTLBload miss ratio 136 pattern or trend may indicate a potentialside-channel exploit attack. The method commences at 502.

At 504, the performance monitoring circuitry 120 generates an interruptresponsive to detecting an overflow condition in either (or both) thefirst counter circuitry 122 providing the CPU cache miss counter (e.g.,the CYCLE_ACTIVITY.STALLS_L3_MISS counter) and/or the second countercircuitry 124 providing the DTLB load miss counter (e.g., theDTLB_LOAD_MISSES.WALK_PENDING counter).

At 506, the performance monitoring circuitry 120 maps the interrupt to aprocess identifier (PID).

At 508, the performance monitoring circuitry 120 transfers the datarepresentative of the CPU cache miss count 132 and the DTLB load misscount 134 to control circuitry executing at the user (i.e., ring 3)level. In embodiments, the performance monitoring circuitry 120transfers CPU cache miss count 132 ₁-132 _(n) and DTLB load miss count134 ₁-134 _(n) information and/or data to the control circuitry 130 overa respective plurality of temporal intervals 138 ₁-138 _(n).

At 510, the control circuitry 130 may store or otherwise retain thereceived CPU cache miss count 132 ₁-132 _(n) and DTLB load miss count134 ₁-134 _(n) information and/or data. In embodiments, the controlcircuitry 130 may store the received information and/or in temporalbuckets or similar data stores and/or data structures that correspond toeach of the intervals included in the plurality of temporal intervals138 ₁-138 _(n).

At 512, the control circuitry 130 calculates or otherwise determines aCPU cache miss to DTLB load miss ratio 136 ₁-136 _(n) for each of atleast some of the plurality of temporal intervals 138 ₁-138 _(n). In atleast some implementations, the control circuitry 130 may determine theCPU cache miss to DTLB load miss ratio 136 according to the followingequation:

Counter Correlation Ratio=CPU Cache Miss Count/(CPU Cache MissCount+DTLB Load Miss Count)  (3)

In embodiments, the control circuitry 130 may detect a pattern ordetermine a trend in the calculated CPU cache miss to DTLB load missratio 136 ₁-136 _(n).

At 514, the control circuitry 130 determines whether a deviation in thedetected pattern or determined trend of the CPU cache miss to DTLB loadmiss ratio 136 indicates a side-channel exploit attack. If the controlcircuitry 130 determines no evidence of a side-channel exploit attack,the method 500 returns to 506, and the control circuitry 130 receivesadditional CPU cache miss count 132 and DTLB load miss count 134information from the performance monitoring circuitry 120. If thecontrol circuitry 130 determines that the deviation in the CPU cachemiss to DTLB load miss ratio 136 provides evidence of a side-channelexploit attack, the method 500 continues to 516.

At 516, the control circuitry 130, in response to detecting a deviationindicative of a side-channel exploit attack at 514, generates an outputto alert a system user and/or system administrator of the potentialside-channel exploit attack. The method 500 concludes at 518.

While FIGS. 4 and 5 illustrate various operations according to one ormore embodiments, it is to be understood that not all of the operationsdepicted in FIGS. 4 and 5 are necessary for other embodiments. Indeed,it is fully contemplated herein that in other embodiments of the presentdisclosure, the operations depicted in FIGS. 4 and 5, and/or otheroperations described herein, may be combined in a manner notspecifically shown in any of the drawings, but still fully consistentwith the present disclosure. Thus, claims directed to features and/oroperations that are not exactly shown in one drawing are deemed withinthe scope and content of the present disclosure.

As used in this application and in the claims, a list of items joined bythe term “and/or” can mean any combination of the listed items. Forexample, the phrase “A, B and/or C” can mean A; B; C; A and B; A and C;B and C; or A, B and C. As used in this application and in the claims, alist of items joined by the term “at least one of” can mean anycombination of the listed terms. For example, the phrases “at least oneof A, B or C” can mean A; B; C; A and B; A and C; B and C; or A, B andC.

As used in any embodiment herein, the terms “system” or “module” mayrefer to, for example, software, firmware and/or circuitry configured toperform any of the aforementioned operations. Software may be embodiedas a software package, code, instructions, instruction sets and/or datarecorded on non-transitory computer readable storage mediums. Firmwaremay be embodied as code, instructions or instruction sets and/or datathat are hard-coded (e.g., nonvolatile) in memory devices. “Circuitry”,as used in any embodiment herein, may comprise, for example, singly orin any combination, hardwired circuitry, programmable circuitry such ascomputer processors comprising one or more individual instructionprocessing cores, state machine circuitry, and/or firmware that storesinstructions executed by programmable circuitry or future computingparadigms including, for example, massive parallelism, analog or quantumcomputing, hardware embodiments of accelerators such as neural netprocessors and non-silicon implementations of the above. The circuitrymay, collectively or individually, be embodied as circuitry that formspart of a larger system, for example, an integrated circuit (IC), systemon-chip (SoC), desktop computers, laptop computers, tablet computers,servers, smartphones, etc.

Any of the operations described herein may be implemented in a systemthat includes one or more mediums (e.g., non-transitory storage mediums)having stored therein, individually or in combination, instructions thatwhen executed by one or more processors perform the methods. Here, theprocessor may include, for example, a server CPU, a mobile device CPU,and/or other programmable circuitry. Also, it is intended thatoperations described herein may be distributed across a plurality ofphysical devices, such as processing structures at more than onedifferent physical location. The storage medium may include any type oftangible medium, for example, any type of disk including hard disks,floppy disks, optical disks, compact disk read-only memories (CD-ROMs),compact disk rewritables (CD-RWs), and magneto-optical disks,semiconductor devices such as read-only memories (ROMs), random accessmemories (RAMs) such as dynamic and static RAMs, erasable programmableread-only memories (EPROMs), electrically erasable programmableread-only memories (EEPROMs), flash memories, Solid State Disks (SSDs),embedded multimedia cards (eMMCs), secure digital input/output (SDIO)cards, magnetic or optical cards, or any type of media suitable forstoring electronic instructions. Other embodiments may be implemented assoftware executed by a programmable control device.

Thus, the present disclosure is directed to systems and methods fordetecting side-channel exploit attacks such as Spectre and Meltdown.Performance monitoring circuitry includes first counter circuitry tomonitor CPU cache misses and second counter circuitry to monitor DTLBload misses. Upon detecting an excessive number of cache misses and/orload misses, the performance monitoring circuitry transfers the firstand second counter circuitry data to control circuitry. The controlcircuitry determines a CPU cache miss to DTLB load miss ratio for eachof a plurality of temporal intervals. The control circuitry theidentifies, determines, and/or detects a pattern or trend in the CPUcache miss to DTLB load miss ratio. Upon detecting a deviation from theidentified CPU cache miss to DTLB load miss ratio pattern or trendindicative of a potential side-channel exploit attack, the controlcircuitry generates an output to alert a system user or systemadministrator.

The following examples pertain to further embodiments. The followingexamples of the present disclosure may comprise subject material such asat least one device, a method, at least one machine-readable medium forstoring instructions that when executed cause a machine to perform actsbased on the method, means for performing acts based on the methodand/or a system for detecting side channel exploit attacks.

According to example 1, there is provided a central processing unit(CPU). The CPU may include: performance monitoring circuitry thatincludes: first counter circuitry to provide a first value thatcorresponds to a number of CPU cache misses that occur over each of aplurality of time intervals; and second counter circuitry to provide asecond value that corresponds to a number of data translation lookasidebuffer (DTLB) load misses that occur over each of the plurality of timeintervals. The CPU may further include control circuitry to: receivefrom the performance monitoring circuitry data representative of thefirst value and data representative of the second value; calculate a CPUcache miss/DTLB load miss ratio based on the first value divided by thesum of the first value and the second value; identify a trend based onthe CPU cache miss/DTLB load miss ratio over the plurality of timeintervals; and generate an output indicative of a side channel exploitexecution responsive to an identification of a deviation in the trendbased on the CPU cache miss/DTLB load miss ratio.

Example 2 may include elements of example 1 where the CPU may furtherinclude machine learning circuitry, the machine learning circuitry tocause the control circuitry to identify the trend using patternrecognition.

Example 3 may include elements of any of examples 1 or 2 where the firstcounter circuitry may include counter circuitry to count level 3 (L3)cache misses.

Example 4 may include elements of any of examples 1 through 3 where eachof the plurality of time intervals may include an interval of from 1millisecond to 500 milliseconds.

Example 5 may include elements of any of examples 1 through 4 where theplurality of time intervals may include a plurality of sequential timeintervals.

Example 6 may include elements of any of examples 1 through 5 and theperformance monitoring circuitry may further: generate an interruptresponsive to an overflow condition in at least one of the first countercircuitry or the second counter circuitry.

Example 7 may include elements of any of examples 1 through 6 where thecontrol circuitry may receive the data representative of the first valueand the data representative of the second value from the performancemonitoring circuitry responsive to the generation of the interrupt bythe performance monitoring circuitry.

According to example 8, there is provided a central processing unit(CPU) side-channel exploit detection method. The method may include:generating, by first counter circuitry, a first value that correspondsto a number of CPU cache misses that occur over each of a plurality oftime intervals; generating, by second counter circuitry, a second valuethat corresponds to a number of data translation lookaside buffer (DTLB)load misses that occur over each of the plurality of time intervals;receiving, by control circuitry, data representative of the first valueand data representative of the second value; determining, by the controlcircuitry, a CPU cache miss/DTLB load miss ratio based on the firstvalue divided by the sum of the first value and the second value;identifying, by the control circuitry, a CPU cache miss/DTLB load missratio trend over the plurality of time intervals; detecting, by thecontrol circuitry, a deviation in the CPU cache miss/DTLB load missratio trend; and generating, by the control circuitry, an outputindicative of a potential execution on of a side-channel exploitresponsive to detection of the deviation in the CPU cache miss/DTLB loadmiss ratio trend.

Example 9 may include elements of example 8 where identifying, by thecontrol circuitry, the CPU cache miss/DTLB load miss ratio trend overthe plurality of time intervals may further include: training, viamachine learning circuitry, the control circuitry to recognize one ormore patterns in the CPU cache miss/DTLB load miss ratio trend over theplurality of time intervals.

Example 10 may include elements of any of examples 8 or 9 wheregenerating, by the first counter circuitry, the first value thatcorresponds to the number of CPU cache misses that occur over each ofthe plurality of time intervals may include: generating, by the firstcounter circuitry, a first value that corresponds to a number of CPUlevel 3 (L3) cache misses that occur over each of the plurality of timeintervals.

Example 11 may include elements of any of examples 8 through 10 wheregenerating, by the first counter circuitry, the first value thatcorresponds to the number of CPU cache misses that occur over each ofthe plurality of time intervals may include: generating, by the firstcounter circuitry, the first value that corresponds to the number of CPUcache misses that occur over each of a plurality of 1 millisecond to 500millisecond time intervals.

Example 12 may include elements of any of examples 8 through 11 wheregenerating, by the first counter circuitry, the first value thatcorresponds to the number of CPU cache misses that occur over each ofthe plurality of 1 millisecond to 500 millisecond time intervals mayinclude: generating, by the first counter circuitry, the first valuethat corresponds to the number of CPU cache misses that occur over eachof a plurality of 1 millisecond to 500 millisecond sequential timeintervals.

Example 13 may include elements of any of examples 8 through 12, and themethod may further include: generating, by performance monitoringcircuitry, an interrupt responsive to an occurrence of an overflowcondition in at least one of the first counter circuitry or the secondcounter circuitry.

Example 14 may include elements of any of examples 8 through 13 wherereceiving, by the control circuitry, the data representative of thefirst value and the data representative of the second value may include:receiving, by the control circuitry, the data representative of thefirst value and the data representative of the second value responsiveto the generation of the interrupt by the performance monitoringcircuitry.

According to example 15, there is provided a side-channel exploitdetection controller. The controller may include: control circuitry; anda storage device coupled to the control circuitry, the storage deviceincluding machine-readable instructions that when executed by thecontrol circuitry, cause the control circuitry to: receive, from firstcounter circuitry, data representative of a first value that correspondsto a number of CPU cache misses that occur over each of a plurality oftime intervals; receive, from second counter circuitry, datarepresentative of a second value that corresponds to a number of datatranslation lookaside buffer (DTLB) load misses that occur over each ofthe plurality of time intervals; determine a CPU cache miss/DTLB loadmiss ratio based on the first value divided by the sum of the firstvalue and the second value; identify a CPU cache miss/DTLB load missratio trend over the plurality of time intervals; detect a deviation inthe CPU cache miss/DTLB load miss ratio trend; and generate an outputindicative of a potential execution on of a side-channel exploitresponsive to detection of the deviation in the CPU cache miss/DTLB loadmiss ratio trend.

Example 16 may include elements of example 15 where the instructionsthat cause the control circuitry to identify a CPU cache miss/DTLB loadmiss ratio trend over the plurality of time intervals may further causethe control circuitry to: identify a CPU cache miss/DTLB load miss ratiotrend over the plurality of time intervals using pattern recognitioninformation received from machine learning circuitry coupled to thecontrol circuitry.

Example 17 may include elements of any of examples 15 or 16 where theinstructions that cause the control circuitry to receive, from the firstcounter circuitry, the data representative of the first valuecorresponding to the number of CPU cache misses that occur over each ofthe plurality of time intervals may further cause the control circuitryto: receive, from the first counter circuitry, data representative of afirst value that corresponds to a number of CPU level 3 (L3) cachemisses that occur over each of the plurality of time intervals.

Example 18 may include elements of any of examples 15 through 17 wherethe instructions that cause the control circuitry to receive, from thefirst counter circuitry, the data representative of the first valuecorresponding to the number of CPU cache misses that occur over each ofthe plurality of time intervals may further cause the control circuitryto: receive, from the first counter circuitry, the data representativeof the first value corresponding to the number of CPU cache misses thatoccur over each of a plurality of 1 millisecond to 500 millisecond timeintervals.

Example 19 may include elements of any of examples 15 through 18 wherethe instructions that cause the control circuitry to receive, from thefirst counter circuitry, the data representative of the first valuecorresponding to the number of CPU cache misses that occur over each ofthe plurality of 1 millisecond to 500 millisecond time intervals mayfurther cause the control circuitry to: receive, from the first countercircuitry, the data representative of the first value corresponding tothe number of CPU cache misses that occur over each of the plurality of1 millisecond to 500 millisecond sequential time intervals.

Example 20 may include elements of any of examples 15 through 19 wherethe machine-readable instructions that cause the control circuitry toreceive, from the first counter circuitry, the data representative ofthe first value that corresponds to a number of CPU cache misses thatoccur over each of the plurality of time intervals may further cause thecontrol circuitry to: receive, from the first counter circuitry, thedata representative of the first value that corresponds to a number ofCPU cache misses that occur over each of the plurality of time intervalsresponsive to an occurrence of an overflow condition in at least one ofthe first counter circuitry or the second counter circuitry.

According to example 21, there is provided a non-transitorymachine-readable storage device that includes instructions that, whenexecuted by the control circuitry, cause the control circuitry to:receive, from first counter circuitry, data representative of a firstvalue that corresponds to a number of CPU cache misses that occur overeach of a plurality of time intervals; receive, from second countercircuitry, data representative of a second value that corresponds to anumber of data translation lookaside buffer (DTLB) load misses thatoccur over each of the plurality of time intervals; determine a CPUcache miss/DTLB load miss ratio based on the first value divided by thesum of the first value and the second value; identify a CPU cachemiss/DTLB load miss ratio trend over the plurality of time intervals;detect a deviation in the CPU cache miss/DTLB load miss ratio trend; andgenerate an output indicative of a potential execution on of aside-channel exploit responsive to detection of the deviation in the CPUcache miss/DTLB load miss ratio trend.

Example 22 may include elements of example 21 where the instructionsthat cause the control circuitry to identify a CPU cache miss/DTLB loadmiss ratio trend over the plurality of time intervals may further causethe control circuitry to: identify a CPU cache miss/DTLB load miss ratiotrend over the plurality of time intervals using pattern recognitioninformation received from machine learning circuitry coupled to thecontrol circuitry.

Example 23 may include elements of any of examples 21 or 22 where theinstructions that cause the control circuitry to receive, from the firstcounter circuitry, the data representative of the first valuecorresponding to the number of CPU cache misses that occur over each ofthe plurality of time intervals may further cause the control circuitryto: receive, from the first counter circuitry, data representative of afirst value that corresponds to a number of CPU level 3 (L3) cachemisses that occur over each of the plurality of time intervals.

Example 24 may include elements of any of examples 21 through 23 wherethe instructions that cause the control circuitry to receive, from thefirst counter circuitry, the data representative of the first valuecorresponding to the number of CPU cache misses that occur over each ofthe plurality of time intervals may further cause the control circuitryto: receive, from the first counter circuitry, the data representativeof the first value corresponding to the number of CPU cache misses thatoccur over each of a plurality of 1 millisecond to 500 millisecond timeintervals.

Example 25 may include elements of any of examples 21 through 24 wherethe instructions that cause the control circuitry to receive, from thefirst counter circuitry, the data representative of the first valuecorresponding to the number of CPU cache misses that occur over each ofthe plurality of 1 millisecond to 500 millisecond time intervals mayfurther cause the control circuitry to: receive, from the first countercircuitry, the data representative of the first value corresponding tothe number of CPU cache misses that occur over each of the plurality of1 millisecond to 500 millisecond sequential time intervals.

Example 26 may include elements of any of examples 21 through 25 wherethe machine-readable instructions that cause the control circuitry toreceive, from the first counter circuitry, the data representative ofthe first value that corresponds to a number of CPU cache misses thatoccur over each of the plurality of time intervals may further cause thecontrol circuitry to: receive, from the first counter circuitry, thedata representative of the first value that corresponds to a number ofCPU cache misses that occur over each of the plurality of time intervalsresponsive to an occurrence of an overflow condition in at least one ofthe first counter circuitry or the second counter circuitry.

According to example 27, there is provided a central processing unit(CPU) side-channel exploit detection system. The system may include:means for generating a first value that corresponds to a number of CPUcache misses that occur over each of a plurality of time intervals;means for generating a second value that corresponds to a number of datatranslation lookaside buffer (DTLB) load misses that occur over each ofthe plurality of time intervals; means for determining a CPU cachemiss/DTLB load miss ratio based on the first value divided by the sum ofthe first value and the second value; means for identifying a CPU cachemiss/DTLB load miss ratio trend over the plurality of time intervals;means for detecting a deviation in the CPU cache miss/DTLB load missratio trend; and means for generating an output indicative of apotential execution on of a side−channel exploit responsive to detectionof the deviation in the CPU cache miss/DTLB load miss ratio trend.

Example 28 may include elements of example 27 where the means foridentifying the CPU cache miss/DTLB load miss ratio trend over theplurality of time intervals may further include: means for training thecontrol circuitry to recognize one or more patterns in the CPU cachemiss/DTLB load miss ratio trend over the plurality of time intervals.

Example 29 may include elements of any of examples 27 or 28 where themeans for generating the first value that corresponds to the number ofCPU cache misses that occur over each of the plurality of time intervalsmay include: means for generating a first value that corresponds to anumber of CPU level 3 (L3) cache misses that occur over each of theplurality of time intervals.

Example 30 may include elements of any of examples 27 through 29 wherethe means for generating the first value that corresponds to the numberof CPU cache misses that occur over each of the plurality of timeintervals may include: means for generating the first value thatcorresponds to the number of CPU cache misses that occur over each of aplurality of 1 millisecond to 500 millisecond time intervals.

Example 31 may include elements of any of examples 27 through 30 wherethe means for generating the first value that corresponds to the numberof CPU cache misses that occur over each of the plurality of 1millisecond to 500 millisecond time intervals may include: means forgenerating the first value that corresponds to the number of CPU cachemisses that occur over each of a plurality of 1 millisecond to 500millisecond sequential time intervals.

Example 32 may include elements of any of examples 27 through 31, andthe system may further include: means for generating an interruptresponsive to an occurrence of an overflow condition in at least one ofthe first counter circuitry or the second counter circuitry.

Example 33 may include elements of any of examples 27 through 32 wherethe means for receiving the data representative of the first value andthe data representative of the second value may include: means forreceiving the data representative of the first value and the datarepresentative of the second value responsive to the generation of theinterrupt.

According to example 34, there is provided an electronic device. Theelectronic device may include: a printed circuit board; and a centralprocessing unit (CPU) coupled to the printed circuit board, the CPU mayinclude: performance monitoring circuitry that includes: first countercircuitry to provide a first value that corresponds to a number of CPUcache misses that occur over each of a plurality of time intervals; andsecond counter circuitry to provide a second value that corresponds to anumber of data translation lookaside buffer (DTLB) load misses thatoccur over each of the plurality of time intervals. The CPU may furtherinclude: control circuitry to: receive from the performance monitoringcircuitry data representative of the first value and data representativeof the second value; calculate a CPU cache miss/DTLB load miss ratiobased on the first value divided by the sum of the first value and thesecond value; identify a trend based on the CPU cache miss/DTLB loadmiss ratio over the plurality of time intervals; and generate an outputindicative of a side channel exploit execution responsive to anidentification of a deviation in the trend based on the CPU cachemiss/DTLB load miss ratio.

Example 35 may include elements of example 34 where the CPU may furtherinclude machine learning circuitry, the machine learning circuitry tocause the control circuitry to identify the trend using patternrecognition.

Example 36 may include elements of any of examples 34 or 35 where thefirst counter circuitry may include counter circuitry to count level 3(L3) cache misses.

Example 37 may include elements of any of examples 34 through 36 whereeach of the plurality of time intervals may include an interval of from1 millisecond to 500 milliseconds.

Example 38 may include elements of any of examples 34 through 37 wherethe plurality of time intervals may include a plurality of sequentialtime intervals.

Example 39 may include elements of any of examples 34 through 38 and theperformance monitoring circuitry may further: generate an interruptresponsive to an overflow condition in at least one of the first countercircuitry or the second counter circuitry.

Example 40 may include elements of any of examples 34 through 39 wherethe control circuitry may receive the data representative of the firstvalue and the data representative of the second value from theperformance monitoring circuitry responsive to the generation of theinterrupt by the performance monitoring circuitry.

The terms and expressions which have been employed herein are used asterms of description and not of limitation, and there is no intention,in the use of such terms and expressions, of excluding any equivalentsof the features shown and described (or portions thereof), and it isrecognized that various modifications are possible within the scope ofthe claims. Accordingly, the claims are intended to cover all suchequivalents.

1-25. (canceled)
 26. An apparatus comprising control circuitry to:determine, for individual ones of a plurality of time intervals, a ratiobased on a first value divided by a sum of the first value and a secondvalue, wherein: the first value corresponds to a number of centralprocessing unit (CPU) cache misses over said individual ones of theplurality of time intervals; and the second value corresponds to anumber of dual/data translation lookaside buffer (DTLB) load misses oversaid individual ones of the plurality of time intervals; identify, basedon the ratio, a trend over the plurality of time intervals; andresponsive to an identification of a deviation in the trend, generateone or more output signals indicative of a side channel exploitexecution.
 27. The apparatus of claim 26, the control circuitry toreceive data representative of the first value and data representativeof the second value for said individual ones of the plurality of timeintervals.
 28. The apparatus of claim 26, the control circuitry toreceive signals from a machine learning circuitry to cause the controlcircuitry to identify the trend using pattern recognition.
 29. Theapparatus of claim 26, wherein the cache misses include level 3 (L3)cache misses.
 30. The apparatus of claim 26, wherein each of theplurality of time intervals comprises an interval of from 1 millisecondto 500 milliseconds.
 31. The apparatus of claim 26, wherein theplurality of time intervals comprises a plurality of sequential timeintervals.
 32. The apparatus of claim 26, wherein the control circuitryis to send for transmission the one or more output signals to at leastone of a system user or a system administrator of a system to includethe apparatus.
 33. The apparatus of claim 26, wherein the apparatuscorresponds to a central processing unit.
 34. A method to be used at acontrol circuitry of an electronic system, the method comprising:determining, for individual ones of a plurality of time intervals, aratio based on a first value divided by a sum of the first value and asecond value, wherein: the first value corresponds to a number ofcentral processing unit (CPU) cache misses over said individual ones ofthe plurality of time intervals; and the second value corresponds to anumber of dual/data translation lookaside buffer (DTLB) load misses oversaid individual ones of the plurality of time intervals; identifying,based on the ratio, a trend over the plurality of time intervals; andresponsive to an identification of a deviation in the trend, generatingone or more output signals indicative of a side channel exploitexecution.
 35. The method of claim 34, further including receiving datarepresentative of the first value and data representative of the secondvalue for said individual ones of the plurality of time intervals. 36.The method of claim 34, further comprising receiving signals from amachine learning circuitry to cause the control circuitry to identifythe trend using pattern recognition.
 37. The method of claim 34, whereinthe cache misses include level 3 (L3) cache misses.
 38. The method ofclaim 34, wherein each of the plurality of time intervals comprises aninterval of from 1 millisecond to 500 milliseconds.
 39. The method ofclaim 34, wherein the plurality of time intervals comprises a pluralityof sequential time intervals.
 40. The method of claim 34, furtherincluding sending for transmission the one or more output signals to atleast one of a system user or a system administrator of the electronicsystem.
 41. A non-transitory machine-readable storage device thatincludes instructions that, when executed by a control circuitry of anelectronic system, causes the control circuitry to perform operationsincluding: determining, for individual ones of a plurality of timeintervals, a ratio based on a first value divided by a sum of the firstvalue and a second value, wherein: the first value corresponds to anumber of central processing unit (CPU) cache misses over saidindividual ones of the plurality of time intervals; and the second valuecorresponds to a number of dual/data translation lookaside buffer (DTLB)load misses over said individual ones of the plurality of timeintervals; identifying, based on the ratio, a trend over the pluralityof time intervals; and responsive to an identification of a deviation inthe trend, generating one or more output signals indicative of a sidechannel exploit execution.
 42. The storage device of claim 41, theoperations further including receiving data representative of the firstvalue and data representative of the second value for said individualones of the plurality of time intervals.
 43. The storage device of claim41, the operations further including receiving signals from a machinelearning circuitry to cause the control circuitry to identify the trendusing pattern recognition.
 44. The storage device of claim 41, whereinthe cache misses include level 3 (L3) cache misses.
 45. The storagedevice of claim 41, wherein each of the plurality of time intervalscomprises an interval of from 1 millisecond to 500 milliseconds.
 46. Thestorage device of claim 41, wherein the plurality of time intervalscomprises a plurality of sequential time intervals.
 47. The storagedevice of claim 41, the operations further including sending fortransmission the one or more output signals to at least one of a systemuser or a system administrator of the electronic system.
 48. Anelectronic system including: performance monitoring circuitry to:determine a first value that corresponds to a number of CPU cache missesthat occur over individual ones of a plurality of time intervals; anddetermine a second value that corresponds to a number of dual/datatranslation lookaside buffer (DTLB) load misses over individual ones ofthe plurality of time intervals; and control circuitry coupled to theperformance monitoring circuitry, the control circuitry to: receive, forindividual ones of the plurality of times intervals, the first value andthe second value from the performance monitoring circuitry; determine,for said individual ones of a plurality of time intervals, a ratio basedon the first value divided by a sum of the first value and the secondvalue; identify, based on the ratio, a trend over the plurality of timeintervals; and responsive to an identification of a deviation in thetrend, generate one or more output signals indicative of a side channelexploit execution.
 49. The system of claim 48, further including amachine learning circuitry coupled to the control circuitry, the controlcircuitry to receive signals from the machine learning circuitry tocause the control circuitry to identify the trend using patternrecognition.
 50. The system of claim 48, the performance monitoringcircuitry further including a first counter circuitry to determine thefirst value, and a second counter circuitry to determine the secondvalue, the performance monitoring circuitry to generate an interruptresponsive to an overflow condition in at least one of the first countercircuitry or the second counter circuitry.